package com.atguigu.state.money2.allState;

import com.atguigu.state.money2.AbstractState;
import com.atguigu.state.money2.Context;
import com.atguigu.state.money2.StateEnum;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: 已审核
 * @create: 2022-03-31 15:28
 **/
public class ReviewState  extends AbstractState {

    @Override
    public void makePriceEvent(Context context) {
        context.setState(new PublishState());
    }

    @Override
    public String getCurrentState() {
        return StateEnum.REVIEWED.getValue();
    }

}
